	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wbsd_init_device
_wbsd_init_device:                      ## @wbsd_init_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_WBSD_IDX_SETUP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_wbsd_read_index
	movq	_WBSD_FIFO_RESET@GOTPCREL(%rip), %rcx
	movq	_WBSD_SOFT_RESET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	orl	%eax, %ebx
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_wbsd_write_index
	movq	_WBSD_DAT3_H@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	%ebx, %edx
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_wbsd_write_index
	movq	_WBSD_FIGNORE_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 8(%r14)
	movq	_WBSD_IDX_CLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wbsd_read_index
	movq	%rax, 16(%r14)
	movq	_WBSD_POWER_N@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_WBSD_CSR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	(%r14), %rsi
	callq	_outb
	movq	_WBSD_IDX_TAAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$127, %edx
	callq	_wbsd_write_index
	movq	(%rbx), %rdi
	addq	(%r14), %rdi
	callq	_inb
	movq	_WBSD_CARDPRESENT@GOTPCREL(%rip), %rdx
	movq	_WBSD_FCARD_PRESENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, (%rdx)
	je	LBB0_2
## %bb.1:
	orl	8(%r14), %ecx
	jmp	LBB0_3
LBB0_2:
	notl	%ecx
	andl	8(%r14), %ecx
LBB0_3:
	movl	%ecx, 8(%r14)
	movq	_WBSD_EINT_CARD@GOTPCREL(%rip), %rax
	movq	_WBSD_EINT_FIFO_THRE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_WBSD_EINT_CRC@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_WBSD_EINT_TIMEOUT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_WBSD_EINT_TC@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_WBSD_EIR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_outb
	movq	_WBSD_ISR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r14), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_inb                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WBSD_IDX_SETUP,4,2             ## @WBSD_IDX_SETUP
	.comm	_WBSD_FIFO_RESET,4,2            ## @WBSD_FIFO_RESET
	.comm	_WBSD_SOFT_RESET,4,2            ## @WBSD_SOFT_RESET
	.comm	_WBSD_DAT3_H,4,2                ## @WBSD_DAT3_H
	.comm	_WBSD_FIGNORE_DETECT,4,2        ## @WBSD_FIGNORE_DETECT
	.comm	_WBSD_IDX_CLK,4,2               ## @WBSD_IDX_CLK
	.comm	_WBSD_POWER_N,4,2               ## @WBSD_POWER_N
	.comm	_WBSD_CSR,8,3                   ## @WBSD_CSR
	.comm	_WBSD_IDX_TAAC,4,2              ## @WBSD_IDX_TAAC
	.comm	_WBSD_CARDPRESENT,4,2           ## @WBSD_CARDPRESENT
	.comm	_WBSD_FCARD_PRESENT,4,2         ## @WBSD_FCARD_PRESENT
	.comm	_WBSD_EINT_CARD,4,2             ## @WBSD_EINT_CARD
	.comm	_WBSD_EINT_FIFO_THRE,4,2        ## @WBSD_EINT_FIFO_THRE
	.comm	_WBSD_EINT_CRC,4,2              ## @WBSD_EINT_CRC
	.comm	_WBSD_EINT_TIMEOUT,4,2          ## @WBSD_EINT_TIMEOUT
	.comm	_WBSD_EINT_TC,4,2               ## @WBSD_EINT_TC
	.comm	_WBSD_EIR,8,3                   ## @WBSD_EIR
	.comm	_WBSD_ISR,8,3                   ## @WBSD_ISR
	.no_dead_strip	_wbsd_init_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wbsd_init_device
_wbsd_init_device:                      ; @wbsd_init_device
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x21, _WBSD_IDX_SETUP@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WBSD_IDX_SETUP@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_wbsd_read_index
Lloh2:
	adrp	x8, _WBSD_FIFO_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WBSD_FIFO_RESET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _WBSD_SOFT_RESET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WBSD_SOFT_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	orr	w20, w8, w0
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_wbsd_write_index
Lloh8:
	adrp	x8, _WBSD_DAT3_H@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WBSD_DAT3_H@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	bic	w2, w20, w8
	ldr	w1, [x21]
	mov	x0, x19
	bl	_wbsd_write_index
Lloh11:
	adrp	x8, _WBSD_FIGNORE_DETECT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WBSD_FIGNORE_DETECT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
	str	w8, [x19, #8]
Lloh14:
	adrp	x8, _WBSD_IDX_CLK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WBSD_IDX_CLK@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wbsd_read_index
	str	x0, [x19, #16]
Lloh17:
	adrp	x8, _WBSD_POWER_N@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WBSD_POWER_N@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh20:
	adrp	x20, _WBSD_CSR@GOTPAGE
Lloh21:
	ldr	x20, [x20, _WBSD_CSR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_outb
Lloh22:
	adrp	x8, _WBSD_IDX_TAAC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WBSD_IDX_TAAC@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #127
	bl	_wbsd_write_index
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_inb
Lloh25:
	adrp	x8, _WBSD_CARDPRESENT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WBSD_CARDPRESENT@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x8]
Lloh28:
	adrp	x8, _WBSD_FCARD_PRESENT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _WBSD_FCARD_PRESENT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w9, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	w9, [x19, #8]
	bic	w8, w9, w8
LBB0_3:
	str	w8, [x19, #8]
Lloh31:
	adrp	x8, _WBSD_EINT_CARD@GOTPAGE
Lloh32:
	ldr	x8, [x8, _WBSD_EINT_CARD@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
Lloh34:
	adrp	x9, _WBSD_EINT_FIFO_THRE@GOTPAGE
Lloh35:
	ldr	x9, [x9, _WBSD_EINT_FIFO_THRE@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh37:
	adrp	x9, _WBSD_EINT_CRC@GOTPAGE
Lloh38:
	ldr	x9, [x9, _WBSD_EINT_CRC@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
Lloh40:
	adrp	x10, _WBSD_EINT_TIMEOUT@GOTPAGE
Lloh41:
	ldr	x10, [x10, _WBSD_EINT_TIMEOUT@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh42:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh43:
	adrp	x9, _WBSD_EINT_TC@GOTPAGE
Lloh44:
	ldr	x9, [x9, _WBSD_EINT_TC@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh46:
	adrp	x9, _WBSD_EIR@GOTPAGE
Lloh47:
	ldr	x9, [x9, _WBSD_EIR@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_outb
	ldr	x8, [x19]
Lloh49:
	adrp	x9, _WBSD_ISR@GOTPAGE
Lloh50:
	ldr	x9, [x9, _WBSD_ISR@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	add	x0, x9, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_inb
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.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	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_WBSD_IDX_SETUP,4,2             ; @WBSD_IDX_SETUP
	.comm	_WBSD_FIFO_RESET,4,2            ; @WBSD_FIFO_RESET
	.comm	_WBSD_SOFT_RESET,4,2            ; @WBSD_SOFT_RESET
	.comm	_WBSD_DAT3_H,4,2                ; @WBSD_DAT3_H
	.comm	_WBSD_FIGNORE_DETECT,4,2        ; @WBSD_FIGNORE_DETECT
	.comm	_WBSD_IDX_CLK,4,2               ; @WBSD_IDX_CLK
	.comm	_WBSD_POWER_N,4,2               ; @WBSD_POWER_N
	.comm	_WBSD_CSR,8,3                   ; @WBSD_CSR
	.comm	_WBSD_IDX_TAAC,4,2              ; @WBSD_IDX_TAAC
	.comm	_WBSD_CARDPRESENT,4,2           ; @WBSD_CARDPRESENT
	.comm	_WBSD_FCARD_PRESENT,4,2         ; @WBSD_FCARD_PRESENT
	.comm	_WBSD_EINT_CARD,4,2             ; @WBSD_EINT_CARD
	.comm	_WBSD_EINT_FIFO_THRE,4,2        ; @WBSD_EINT_FIFO_THRE
	.comm	_WBSD_EINT_CRC,4,2              ; @WBSD_EINT_CRC
	.comm	_WBSD_EINT_TIMEOUT,4,2          ; @WBSD_EINT_TIMEOUT
	.comm	_WBSD_EINT_TC,4,2               ; @WBSD_EINT_TC
	.comm	_WBSD_EIR,8,3                   ; @WBSD_EIR
	.comm	_WBSD_ISR,8,3                   ; @WBSD_ISR
	.no_dead_strip	_wbsd_init_device
.subsections_via_symbols
