	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwifiex_register_dev
_mwifiex_register_dev:                  ## @mwifiex_register_dev
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	16(%rdi), %rbx
	movq	16(%rbx), %r15
	movq	%rdi, 32(%rbx)
	movl	24(%rbx), %eax
	movl	%eax, 12(%rdi)
	movq	%r15, %rdi
	callq	_sdio_claim_host
	movq	16(%rbx), %rdi
	movq	_MWIFIEX_SDIO_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sdio_set_block_size
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_sdio_release_host
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_mwifiex_dbg
	jmp	LBB0_5
LBB0_2:
	movl	8(%r12), %edi
	movl	8(%rbx), %esi
	callq	_strcpy
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	movq	_generic_mem_type_map@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	$1, (%r12)
	jmp	LBB0_5
LBB0_4:
	movq	_mem_type_mapping_tbl@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%r12)
	callq	_ARRAY_SIZE
	movl	%eax, (%r12)
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_SDIO_BLOCK_SIZE,4,2    ## @MWIFIEX_SDIO_BLOCK_SIZE
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot set SDIO block size\n"

	.comm	_generic_mem_type_map,4,2       ## @generic_mem_type_map
	.comm	_mem_type_mapping_tbl,4,2       ## @mem_type_mapping_tbl
	.no_dead_strip	_mwifiex_register_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwifiex_register_dev
_mwifiex_register_dev:                  ; @mwifiex_register_dev
	.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
	ldr	x22, [x0, #16]
	ldr	x21, [x22, #16]
	str	x0, [x22, #32]
	ldr	w8, [x22, #24]
	str	w8, [x0, #12]
	mov	x0, x21
	bl	_sdio_claim_host
	ldr	x0, [x22, #16]
Lloh0:
	adrp	x8, _MWIFIEX_SDIO_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MWIFIEX_SDIO_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_sdio_set_block_size
	mov	x20, x0
	mov	x0, x21
	bl	_sdio_release_host
	cbz	w20, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mwifiex_dbg
	b	LBB0_5
LBB0_2:
	ldr	w0, [x19, #8]
	ldr	w1, [x22, #8]
	bl	_strcpy
	ldr	x8, [x22]
	cbz	x8, LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _generic_mem_type_map@GOTPAGE
Lloh9:
	ldr	x8, [x8, _generic_mem_type_map@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [x19]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _mem_type_mapping_tbl@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mem_type_mapping_tbl@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	str	w0, [x19, #4]
	bl	_ARRAY_SIZE
	str	w0, [x19]
LBB0_5:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_SDIO_BLOCK_SIZE,4,2    ; @MWIFIEX_SDIO_BLOCK_SIZE
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot set SDIO block size\n"

	.comm	_generic_mem_type_map,4,2       ; @generic_mem_type_map
	.comm	_mem_type_mapping_tbl,4,2       ; @mem_type_mapping_tbl
	.no_dead_strip	_mwifiex_register_dev
.subsections_via_symbols
