	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib9000_fw_reset
_dib9000_fw_reset:                      ## @dib9000_fw_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$1817, %esi                     ## imm = 0x719
	movl	$3, %edx
	callq	_dib9000_write_word
	movq	%rbx, %rdi
	movl	$1227, %esi                     ## imm = 0x4CB
	movl	$1, %edx
	callq	_dib9000_write_word
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	$1227, %esi                     ## imm = 0x4CB
	xorl	%edx, %edx
	callq	_dib9000_write_word
	leaq	12(%rbx), %rdi
	callq	_dib9000_identify
	movl	%eax, 16(%rbx)
	addl	$-16387, %eax                   ## imm = 0xBFFD
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.1:
	movl	$1, (%rbx)
	leaq	8(%rbx), %rdi
	callq	_dibx000_reset_i2c_master
	movq	_DIB9000_POWER_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dib9000_set_power_mode
	movq	%rbx, %rdi
	movl	$1794, %esi                     ## imm = 0x702
	callq	_dib9000_read_word
	andl	$-3, %eax
	movq	%rbx, %rdi
	movl	$1794, %esi                     ## imm = 0x702
	movl	%eax, %edx
	callq	_dib9000_write_word
	movq	%rbx, %rdi
	movl	$1796, %esi                     ## imm = 0x704
	xorl	%edx, %edx
	callq	_dib9000_write_word
	movq	%rbx, %rdi
	movl	$1805, %esi                     ## imm = 0x70D
	movl	$2053, %edx                     ## imm = 0x805
	callq	_dib9000_write_word
	movq	%rbx, %rdi
	movl	$898, %esi                      ## imm = 0x382
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_dib9000_write_word
	movq	%rbx, %rdi
	movl	$899, %esi                      ## imm = 0x383
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_dib9000_write_word
	movq	%rbx, %rdi
	movl	$900, %esi                      ## imm = 0x384
	movl	$1, %edx
	callq	_dib9000_write_word
	movq	%rbx, %rdi
	movl	$901, %esi                      ## imm = 0x385
	movl	$65305, %edx                    ## imm = 0xFF19
	callq	_dib9000_write_word
	movq	%rbx, %rdi
	movl	$902, %esi                      ## imm = 0x386
	movl	$60, %edx
	callq	_dib9000_write_word
	movq	%rbx, %rdi
	movl	$898, %esi                      ## imm = 0x382
	xorl	%edx, %edx
	callq	_dib9000_write_word
	movq	%rbx, %rdi
	movl	$899, %esi                      ## imm = 0x383
	xorl	%edx, %edx
	callq	_dib9000_write_word
	movq	%rbx, %rdi
	movl	$900, %esi                      ## imm = 0x384
	xorl	%edx, %edx
	callq	_dib9000_write_word
	movq	%rbx, %rdi
	movl	$901, %esi                      ## imm = 0x385
	xorl	%edx, %edx
	callq	_dib9000_write_word
	movq	%rbx, %rdi
	movl	$902, %esi                      ## imm = 0x386
	xorl	%edx, %edx
	callq	_dib9000_write_word
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	movl	$911, %esi                      ## imm = 0x38F
	callq	_dib9000_write_word
	movq	_DIB9000_POWER_INTERFACE_ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dib9000_set_power_mode
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DIB9000_POWER_ALL,4,2          ## @DIB9000_POWER_ALL
	.comm	_DIB9000_POWER_INTERFACE_ONLY,4,2 ## @DIB9000_POWER_INTERFACE_ONLY
	.no_dead_strip	_dib9000_fw_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib9000_fw_reset
_dib9000_fw_reset:                      ; @dib9000_fw_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
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #1817
	mov	w2, #3
	bl	_dib9000_write_word
	mov	w20, #1
	mov	x0, x19
	mov	w1, #1227
	mov	w2, #1
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #1227
	mov	w2, #0
	bl	_dib9000_write_word
	add	x0, x19, #12
	bl	_dib9000_identify
	str	w0, [x19, #16]
	mov	w8, #-16387
	add	w8, w0, w8
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
	str	w20, [x19]
	add	x0, x19, #8
	bl	_dibx000_reset_i2c_master
Lloh0:
	adrp	x8, _DIB9000_POWER_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DIB9000_POWER_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib9000_set_power_mode
	mov	x0, x19
	mov	w1, #1794
	bl	_dib9000_read_word
	and	w2, w0, #0xfffffffd
	mov	x0, x19
	mov	w1, #1794
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #1796
	mov	w2, #0
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #1805
	mov	w2, #2053
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #898
	mov	w2, #65535
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #899
	mov	w2, #65535
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #900
	mov	w2, #1
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #901
	mov	w2, #65305
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #902
	mov	w2, #60
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #898
	mov	w2, #0
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #899
	mov	w2, #0
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #900
	mov	w2, #0
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #901
	mov	w2, #0
	bl	_dib9000_write_word
	mov	x0, x19
	mov	w1, #902
	mov	w2, #0
	bl	_dib9000_write_word
	ldr	w2, [x19, #4]
	mov	x0, x19
	mov	w1, #911
	bl	_dib9000_write_word
Lloh3:
	adrp	x8, _DIB9000_POWER_INTERFACE_ONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DIB9000_POWER_INTERFACE_ONLY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dib9000_set_power_mode
	mov	w0, #0
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DIB9000_POWER_ALL,4,2          ; @DIB9000_POWER_ALL
	.comm	_DIB9000_POWER_INTERFACE_ONLY,4,2 ; @DIB9000_POWER_INTERFACE_ONLY
	.no_dead_strip	_dib9000_fw_reset
.subsections_via_symbols
