	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k5baf_hw_sync_cfg
_s5k5baf_hw_sync_cfg:                   ## @s5k5baf_hw_sync_cfg
	.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
	movq	%rdi, %rbx
	movq	_REG_G_PREV_CFG_CHG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_s5k5baf_write
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_REG_G_INPUTS_CHANGE_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_s5k5baf_write
	movq	_REG_G_PREV_CFG_BYPASS_CHANGED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_s5k5baf_write
LBB0_2:
	movq	_REG_G_NEW_CFG_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$500, %esi                      ## imm = 0x1F4
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_s5k5baf_synchronize            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_G_PREV_CFG_CHG,4,2         ## @REG_G_PREV_CFG_CHG
	.comm	_REG_G_INPUTS_CHANGE_REQ,4,2    ## @REG_G_INPUTS_CHANGE_REQ
	.comm	_REG_G_PREV_CFG_BYPASS_CHANGED,4,2 ## @REG_G_PREV_CFG_BYPASS_CHANGED
	.comm	_REG_G_NEW_CFG_SYNC,4,2         ## @REG_G_NEW_CFG_SYNC
	.no_dead_strip	_s5k5baf_hw_sync_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k5baf_hw_sync_cfg
_s5k5baf_hw_sync_cfg:                   ; @s5k5baf_hw_sync_cfg
	.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, _REG_G_PREV_CFG_CHG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_G_PREV_CFG_CHG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_s5k5baf_write
	ldr	x8, [x19]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _REG_G_INPUTS_CHANGE_REQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_G_INPUTS_CHANGE_REQ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_s5k5baf_write
Lloh6:
	adrp	x8, _REG_G_PREV_CFG_BYPASS_CHANGED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_G_PREV_CFG_BYPASS_CHANGED@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_s5k5baf_write
LBB0_2:
Lloh9:
	adrp	x8, _REG_G_NEW_CFG_SYNC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_G_NEW_CFG_SYNC@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #500
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_s5k5baf_synchronize
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_G_PREV_CFG_CHG,4,2         ; @REG_G_PREV_CFG_CHG
	.comm	_REG_G_INPUTS_CHANGE_REQ,4,2    ; @REG_G_INPUTS_CHANGE_REQ
	.comm	_REG_G_PREV_CFG_BYPASS_CHANGED,4,2 ; @REG_G_PREV_CFG_BYPASS_CHANGED
	.comm	_REG_G_NEW_CFG_SYNC,4,2         ; @REG_G_NEW_CFG_SYNC
	.no_dead_strip	_s5k5baf_hw_sync_cfg
.subsections_via_symbols
