	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv748x_sw_reset
_adv748x_sw_reset:                      ## @adv748x_sw_reset
	.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	_ADV748X_IO_REG_FF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADV748X_IO_REG_FF_MAIN_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_io_write
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	$5000, %edi                     ## imm = 0x1388
	movl	$6000, %esi                     ## imm = 0x1770
	callq	_usleep_range
	movq	_ADV748X_IO_REG_01@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADV748X_IO_REG_01_PWRDN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ADV748X_IO_REG_01_PWRDNB@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_io_clrset
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	_ADV748X_IO_REG_F2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ADV748X_IO_REG_F2_READ_AUTO_INC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_io_write                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ADV748X_IO_REG_FF,4,2          ## @ADV748X_IO_REG_FF
	.comm	_ADV748X_IO_REG_FF_MAIN_RESET,4,2 ## @ADV748X_IO_REG_FF_MAIN_RESET
	.comm	_ADV748X_IO_REG_01,4,2          ## @ADV748X_IO_REG_01
	.comm	_ADV748X_IO_REG_01_PWRDN_MASK,4,2 ## @ADV748X_IO_REG_01_PWRDN_MASK
	.comm	_ADV748X_IO_REG_01_PWRDNB,4,2   ## @ADV748X_IO_REG_01_PWRDNB
	.comm	_ADV748X_IO_REG_F2,4,2          ## @ADV748X_IO_REG_F2
	.comm	_ADV748X_IO_REG_F2_READ_AUTO_INC,4,2 ## @ADV748X_IO_REG_F2_READ_AUTO_INC
	.no_dead_strip	_adv748x_sw_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv748x_sw_reset
_adv748x_sw_reset:                      ; @adv748x_sw_reset
	.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, _ADV748X_IO_REG_FF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ADV748X_IO_REG_FF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ADV748X_IO_REG_FF_MAIN_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADV748X_IO_REG_FF_MAIN_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_io_write
	cbnz	w0, LBB0_2
; %bb.1:
	mov	w0, #5000
	mov	w1, #6000
	bl	_usleep_range
Lloh6:
	adrp	x8, _ADV748X_IO_REG_01@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ADV748X_IO_REG_01@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _ADV748X_IO_REG_01_PWRDN_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ADV748X_IO_REG_01_PWRDN_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x8, _ADV748X_IO_REG_01_PWRDNB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ADV748X_IO_REG_01_PWRDNB@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_io_clrset
	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:
Lloh15:
	adrp	x8, _ADV748X_IO_REG_F2@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADV748X_IO_REG_F2@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _ADV748X_IO_REG_F2_READ_AUTO_INC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ADV748X_IO_REG_F2_READ_AUTO_INC@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_io_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ADV748X_IO_REG_FF,4,2          ; @ADV748X_IO_REG_FF
	.comm	_ADV748X_IO_REG_FF_MAIN_RESET,4,2 ; @ADV748X_IO_REG_FF_MAIN_RESET
	.comm	_ADV748X_IO_REG_01,4,2          ; @ADV748X_IO_REG_01
	.comm	_ADV748X_IO_REG_01_PWRDN_MASK,4,2 ; @ADV748X_IO_REG_01_PWRDN_MASK
	.comm	_ADV748X_IO_REG_01_PWRDNB,4,2   ; @ADV748X_IO_REG_01_PWRDNB
	.comm	_ADV748X_IO_REG_F2,4,2          ; @ADV748X_IO_REG_F2
	.comm	_ADV748X_IO_REG_F2_READ_AUTO_INC,4,2 ; @ADV748X_IO_REG_F2_READ_AUTO_INC
	.no_dead_strip	_adv748x_sw_reset
.subsections_via_symbols
