	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k4ecgx_set_ahb_address
_s5k4ecgx_set_ahb_address:              ## @s5k4ecgx_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_v4l2_get_subdevdata
	movq	%rax, %rbx
	movq	_AHB_MSB_ADDR_PTR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GEN_REG_OFFSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_s5k4ecgx_i2c_write
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	$1, %edx
	callq	_s5k4ecgx_i2c_write
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$4144, %esi                     ## imm = 0x1030
	xorl	%edx, %edx
	callq	_s5k4ecgx_i2c_write
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	movl	$20, %esi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_s5k4ecgx_i2c_write             ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AHB_MSB_ADDR_PTR,4,2           ## @AHB_MSB_ADDR_PTR
	.comm	_GEN_REG_OFFSH,4,2              ## @GEN_REG_OFFSH
	.no_dead_strip	_s5k4ecgx_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 s5k4ecgx_set_ahb_address
_s5k4ecgx_set_ahb_address:              ; @s5k4ecgx_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
	bl	_v4l2_get_subdevdata
	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	_s5k4ecgx_i2c_write
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x0, x19
	mov	w1, #16
	mov	w2, #1
	bl	_s5k4ecgx_i2c_write
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #4144
	mov	w2, #0
	bl	_s5k4ecgx_i2c_write
	tbnz	w0, #31, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #20
	mov	w2, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_s5k4ecgx_i2c_write
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AHB_MSB_ADDR_PTR,4,2           ; @AHB_MSB_ADDR_PTR
	.comm	_GEN_REG_OFFSH,4,2              ; @GEN_REG_OFFSH
	.no_dead_strip	_s5k4ecgx_set_ahb_address
.subsections_via_symbols
