	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath10k_init_sdio
_ath10k_init_sdio:                      ## @ath10k_init_sdio
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$0, -36(%rbp)
	movq	_hi_mbox_io_block_sz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$256, %edx                      ## imm = 0x100
	callq	_ath10k_bmi_write32
	movq	_hi_mbox_isr_yield_limit@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$99, %edx
	callq	_ath10k_bmi_write32
	movq	_hi_acs_flags@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_ath10k_bmi_read32
	movq	_HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_HI_ACS_FLAGS_ALT_DATA_CREDIT_SIZE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	-36(%rbp), %eax
	movq	_ATH10K_FIRMWARE_MODE_UTF@GOTPCREL(%rip), %rcx
	movq	_HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_SET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	orl	%eax, %esi
	notl	%edx
	andl	%eax, %edx
	cmpl	%r14d, (%rcx)
	cmovnel	%esi, %edx
	movl	%edx, -36(%rbp)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_ath10k_bmi_write32
	movq	_hi_option_flag@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_ath10k_bmi_read32
	movq	_HI_OPTION_DISABLE_DBGLOG@GOTPCREL(%rip), %rax
	movl	-36(%rbp), %edx
	orl	(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ath10k_bmi_write32
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hi_mbox_io_block_sz,4,2        ## @hi_mbox_io_block_sz
	.comm	_hi_mbox_isr_yield_limit,4,2    ## @hi_mbox_isr_yield_limit
	.comm	_hi_acs_flags,4,2               ## @hi_acs_flags
	.comm	_HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_SET,4,2 ## @HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_SET
	.comm	_HI_ACS_FLAGS_ALT_DATA_CREDIT_SIZE,4,2 ## @HI_ACS_FLAGS_ALT_DATA_CREDIT_SIZE
	.comm	_ATH10K_FIRMWARE_MODE_UTF,4,2   ## @ATH10K_FIRMWARE_MODE_UTF
	.comm	_HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_SET,4,2 ## @HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_SET
	.comm	_hi_option_flag,4,2             ## @hi_option_flag
	.comm	_HI_OPTION_DISABLE_DBGLOG,4,2   ## @HI_OPTION_DISABLE_DBGLOG
	.no_dead_strip	_ath10k_init_sdio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath10k_init_sdio
_ath10k_init_sdio:                      ; @ath10k_init_sdio
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _hi_mbox_io_block_sz@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hi_mbox_io_block_sz@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #256
	bl	_ath10k_bmi_write32
Lloh3:
	adrp	x8, _hi_mbox_isr_yield_limit@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hi_mbox_isr_yield_limit@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #99
	bl	_ath10k_bmi_write32
Lloh6:
	adrp	x21, _hi_acs_flags@GOTPAGE
Lloh7:
	ldr	x21, [x21, _hi_acs_flags@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ath10k_bmi_read32
Lloh8:
	adrp	x8, _HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_SET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_SET@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
Lloh11:
	adrp	x10, _HI_ACS_FLAGS_ALT_DATA_CREDIT_SIZE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _HI_ACS_FLAGS_ALT_DATA_CREDIT_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w8, w8, w10
	bic	w8, w9, w8
Lloh14:
	adrp	x9, _ATH10K_FIRMWARE_MODE_UTF@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ATH10K_FIRMWARE_MODE_UTF@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_SET@GOTPAGE
Lloh18:
	ldr	x10, [x10, _HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_SET@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w11, w10, w8
	bic	w8, w8, w10
	cmp	w9, w20
	csel	w2, w8, w11, eq
	str	w2, [sp, #12]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_ath10k_bmi_write32
Lloh20:
	adrp	x20, _hi_option_flag@GOTPAGE
Lloh21:
	ldr	x20, [x20, _hi_option_flag@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_ath10k_bmi_read32
Lloh22:
	adrp	x8, _HI_OPTION_DISABLE_DBGLOG@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HI_OPTION_DISABLE_DBGLOG@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ath10k_bmi_write32
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_hi_mbox_io_block_sz,4,2        ; @hi_mbox_io_block_sz
	.comm	_hi_mbox_isr_yield_limit,4,2    ; @hi_mbox_isr_yield_limit
	.comm	_hi_acs_flags,4,2               ; @hi_acs_flags
	.comm	_HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_SET,4,2 ; @HI_ACS_FLAGS_SDIO_REDUCE_TX_COMPL_SET
	.comm	_HI_ACS_FLAGS_ALT_DATA_CREDIT_SIZE,4,2 ; @HI_ACS_FLAGS_ALT_DATA_CREDIT_SIZE
	.comm	_ATH10K_FIRMWARE_MODE_UTF,4,2   ; @ATH10K_FIRMWARE_MODE_UTF
	.comm	_HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_SET,4,2 ; @HI_ACS_FLAGS_SDIO_SWAP_MAILBOX_SET
	.comm	_hi_option_flag,4,2             ; @hi_option_flag
	.comm	_HI_OPTION_DISABLE_DBGLOG,4,2   ; @HI_OPTION_DISABLE_DBGLOG
	.no_dead_strip	_ath10k_init_sdio
.subsections_via_symbols
