	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wbsd_chip_config
_wbsd_chip_config:                      ## @wbsd_chip_config
	.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
	callq	_wbsd_unlock_config
	movq	_WBSD_CONF_SWRST@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_wbsd_write_config
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_wbsd_write_config
	movq	_WBSD_CONF_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DEVICE_SD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_wbsd_write_config
	movq	_WBSD_CONF_PINS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WBSD_PINS_DETECT_GP11@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_wbsd_write_config
	movq	_WBSD_CONF_PORT_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	sarl	$8, %edx
	movq	%rbx, %rdi
	callq	_wbsd_write_config
	movq	_WBSD_CONF_PORT_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_wbsd_write_config
	movq	_WBSD_CONF_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_wbsd_write_config
	movl	8(%rbx), %edx
	testl	%edx, %edx
	js	LBB0_2
## %bb.1:
	movq	_WBSD_CONF_DRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wbsd_write_config
LBB0_2:
	movq	_WBSD_CONF_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_wbsd_write_config
	movq	_WBSD_CONF_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$32, %edx
	callq	_wbsd_write_config
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wbsd_lock_config               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WBSD_CONF_SWRST,4,2            ## @WBSD_CONF_SWRST
	.comm	_WBSD_CONF_DEVICE,4,2           ## @WBSD_CONF_DEVICE
	.comm	_DEVICE_SD,4,2                  ## @DEVICE_SD
	.comm	_WBSD_CONF_PINS,4,2             ## @WBSD_CONF_PINS
	.comm	_WBSD_PINS_DETECT_GP11,4,2      ## @WBSD_PINS_DETECT_GP11
	.comm	_WBSD_CONF_PORT_HI,4,2          ## @WBSD_CONF_PORT_HI
	.comm	_WBSD_CONF_PORT_LO,4,2          ## @WBSD_CONF_PORT_LO
	.comm	_WBSD_CONF_IRQ,4,2              ## @WBSD_CONF_IRQ
	.comm	_WBSD_CONF_DRQ,4,2              ## @WBSD_CONF_DRQ
	.comm	_WBSD_CONF_ENABLE,4,2           ## @WBSD_CONF_ENABLE
	.comm	_WBSD_CONF_POWER,4,2            ## @WBSD_CONF_POWER
	.no_dead_strip	_wbsd_chip_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wbsd_chip_config
_wbsd_chip_config:                      ; @wbsd_chip_config
	.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
	bl	_wbsd_unlock_config
Lloh0:
	adrp	x20, _WBSD_CONF_SWRST@GOTPAGE
Lloh1:
	ldr	x20, [x20, _WBSD_CONF_SWRST@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #1
	bl	_wbsd_write_config
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_wbsd_write_config
Lloh2:
	adrp	x8, _WBSD_CONF_DEVICE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WBSD_CONF_DEVICE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _DEVICE_SD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEVICE_SD@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wbsd_write_config
Lloh8:
	adrp	x8, _WBSD_CONF_PINS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WBSD_CONF_PINS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _WBSD_PINS_DETECT_GP11@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WBSD_PINS_DETECT_GP11@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wbsd_write_config
Lloh14:
	adrp	x8, _WBSD_CONF_PORT_HI@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WBSD_CONF_PORT_HI@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w8, [x19]
	asr	w2, w8, #8
	mov	x0, x19
	bl	_wbsd_write_config
Lloh17:
	adrp	x8, _WBSD_CONF_PORT_LO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WBSD_CONF_PORT_LO@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldrb	w2, [x19]
	mov	x0, x19
	bl	_wbsd_write_config
Lloh20:
	adrp	x8, _WBSD_CONF_IRQ@GOTPAGE
Lloh21:
	ldr	x8, [x8, _WBSD_CONF_IRQ@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x0, x19
	bl	_wbsd_write_config
	ldr	w2, [x19, #8]
	tbnz	w2, #31, LBB0_2
; %bb.1:
Lloh23:
	adrp	x8, _WBSD_CONF_DRQ@GOTPAGE
Lloh24:
	ldr	x8, [x8, _WBSD_CONF_DRQ@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wbsd_write_config
LBB0_2:
Lloh26:
	adrp	x8, _WBSD_CONF_ENABLE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _WBSD_CONF_ENABLE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_wbsd_write_config
Lloh29:
	adrp	x8, _WBSD_CONF_POWER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _WBSD_CONF_POWER@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #32
	bl	_wbsd_write_config
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wbsd_lock_config
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_WBSD_CONF_SWRST,4,2            ; @WBSD_CONF_SWRST
	.comm	_WBSD_CONF_DEVICE,4,2           ; @WBSD_CONF_DEVICE
	.comm	_DEVICE_SD,4,2                  ; @DEVICE_SD
	.comm	_WBSD_CONF_PINS,4,2             ; @WBSD_CONF_PINS
	.comm	_WBSD_PINS_DETECT_GP11,4,2      ; @WBSD_PINS_DETECT_GP11
	.comm	_WBSD_CONF_PORT_HI,4,2          ; @WBSD_CONF_PORT_HI
	.comm	_WBSD_CONF_PORT_LO,4,2          ; @WBSD_CONF_PORT_LO
	.comm	_WBSD_CONF_IRQ,4,2              ; @WBSD_CONF_IRQ
	.comm	_WBSD_CONF_DRQ,4,2              ; @WBSD_CONF_DRQ
	.comm	_WBSD_CONF_ENABLE,4,2           ; @WBSD_CONF_ENABLE
	.comm	_WBSD_CONF_POWER,4,2            ; @WBSD_CONF_POWER
	.no_dead_strip	_wbsd_chip_config
.subsections_via_symbols
