	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k6aa_set_ahb_address
_s5k6aa_set_ahb_address:                ## @s5k6aa_set_ahb_address
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_AHB_MSB_ADDR_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GEN_REG_OFFSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_s5k6aa_i2c_write
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_REG_CMDRD_ADDRH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HOST_SWIF_OFFSH@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_s5k6aa_i2c_write
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	_REG_CMDWR_ADDRH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_s5k6aa_i2c_write               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AHB_MSB_ADDR_PTR,4,2           ## @AHB_MSB_ADDR_PTR
	.comm	_GEN_REG_OFFSH,4,2              ## @GEN_REG_OFFSH
	.comm	_REG_CMDRD_ADDRH,4,2            ## @REG_CMDRD_ADDRH
	.comm	_HOST_SWIF_OFFSH,4,2            ## @HOST_SWIF_OFFSH
	.comm	_REG_CMDWR_ADDRH,4,2            ## @REG_CMDWR_ADDRH
	.no_dead_strip	_s5k6aa_set_ahb_address
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k6aa_set_ahb_address
_s5k6aa_set_ahb_address:                ; @s5k6aa_set_ahb_address
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _AHB_MSB_ADDR_PTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AHB_MSB_ADDR_PTR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _GEN_REG_OFFSH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN_REG_OFFSH@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_s5k6aa_i2c_write
	cbnz	w0, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _REG_CMDRD_ADDRH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_CMDRD_ADDRH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x20, _HOST_SWIF_OFFSH@GOTPAGE
Lloh10:
	ldr	x20, [x20, _HOST_SWIF_OFFSH@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_s5k6aa_i2c_write
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh11:
	adrp	x8, _REG_CMDWR_ADDRH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_CMDWR_ADDRH@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_s5k6aa_i2c_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AHB_MSB_ADDR_PTR,4,2           ; @AHB_MSB_ADDR_PTR
	.comm	_GEN_REG_OFFSH,4,2              ; @GEN_REG_OFFSH
	.comm	_REG_CMDRD_ADDRH,4,2            ; @REG_CMDRD_ADDRH
	.comm	_HOST_SWIF_OFFSH,4,2            ; @HOST_SWIF_OFFSH
	.comm	_REG_CMDWR_ADDRH,4,2            ; @REG_CMDWR_ADDRH
	.no_dead_strip	_s5k6aa_set_ahb_address
.subsections_via_symbols
