	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_hca_core_clock_update
_mlx4_hca_core_clock_update:            ## @mlx4_hca_core_clock_update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_mlx4_alloc_cmd_mailbox
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx4_warn
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	8(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %r12d
	movq	_MLX4_CMD_QUERY_HCA@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_MLX4_CMD_TIME_CLASS_B@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_mlx4_is_slave
	xorl	%r10d, %r10d
	testl	%eax, %eax
	sete	%r10b
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	%r13d, %r9d
	pushq	%r10
	pushq	%r15
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_mlx4_warn
	jmp	LBB0_4
LBB0_3:
	movl	(%rbx), %edi
	movq	_QUERY_HCA_CORE_CLOCK_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_MLX4_GET
LBB0_4:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mlx4_free_cmd_mailbox
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hca_core_clock mailbox allocation failed\n"

	.comm	_MLX4_CMD_QUERY_HCA,4,2         ## @MLX4_CMD_QUERY_HCA
	.comm	_MLX4_CMD_TIME_CLASS_B,4,2      ## @MLX4_CMD_TIME_CLASS_B
L_.str.1:                               ## @.str.1
	.asciz	"hca_core_clock update failed\n"

	.comm	_QUERY_HCA_CORE_CLOCK_OFFSET,4,2 ## @QUERY_HCA_CORE_CLOCK_OFFSET
	.no_dead_strip	_mlx4_hca_core_clock_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_hca_core_clock_update
_mlx4_hca_core_clock_update:            ; @mlx4_hca_core_clock_update
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_mlx4_alloc_cmd_mailbox
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_mlx4_warn
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_2:
	ldr	x21, [x19, #8]
	ldr	w22, [x19]
Lloh2:
	adrp	x8, _MLX4_CMD_QUERY_HCA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLX4_CMD_QUERY_HCA@GOTPAGEOFF]
Lloh4:
	ldr	w23, [x8]
Lloh5:
	adrp	x8, _MLX4_CMD_TIME_CLASS_B@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_B@GOTPAGEOFF]
Lloh7:
	ldr	w24, [x8]
	mov	x0, x20
	bl	_mlx4_is_slave
	cmp	w0, #0
	cset	w7, eq
	mov	x0, x20
	mov	w1, #0
	mov	x2, x22
	mov	w3, #0
	mov	w4, #0
	mov	x5, x23
	mov	x6, x24
	bl	_mlx4_cmd_box
	mov	x22, x0
	cbz	w0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_mlx4_warn
	b	LBB0_5
LBB0_4:
	ldr	w0, [x20]
Lloh10:
	adrp	x8, _QUERY_HCA_CORE_CLOCK_OFFSET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _QUERY_HCA_CORE_CLOCK_OFFSET@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_MLX4_GET
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_mlx4_free_cmd_mailbox
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hca_core_clock mailbox allocation failed\n"

	.comm	_MLX4_CMD_QUERY_HCA,4,2         ; @MLX4_CMD_QUERY_HCA
	.comm	_MLX4_CMD_TIME_CLASS_B,4,2      ; @MLX4_CMD_TIME_CLASS_B
l_.str.1:                               ; @.str.1
	.asciz	"hca_core_clock update failed\n"

	.comm	_QUERY_HCA_CORE_CLOCK_OFFSET,4,2 ; @QUERY_HCA_CORE_CLOCK_OFFSET
	.no_dead_strip	_mlx4_hca_core_clock_update
.subsections_via_symbols
