	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_macio_enable_wireless          ## -- Begin function macio_enable_wireless
	.p2align	4, 0x90
_macio_enable_wireless:                 ## @macio_enable_wireless
	.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
	movl	%esi, %r14d
	callq	_device_get_softc
	movq	%rax, %rbx
	movl	(%rax), %edi
	movq	_KEYLARGO_FCR2@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_bus_read_4
	testl	%r14d, %r14d
	je	LBB0_2
## %bb.1:
	orl	$4, %eax
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movl	%eax, %edx
	callq	_bus_write_4
	movl	(%rbx), %edi
	movq	_KEYLARGO_GPIO_BASE@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	$15, %rsi
	movl	$5, %edx
	callq	_bus_write_1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movl	(%rbx), %edi
	movq	(%r14), %rsi
	addq	$15, %rsi
	movl	$4, %edx
	callq	_bus_write_1
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movl	(%rbx), %edi
	movl	(%r15), %esi
	callq	_bus_read_4
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movl	%eax, %edx
	callq	_bus_write_4
	movl	(%rbx), %edi
	movq	_KEYLARGO_EXTINT_GPIO_REG_BASE@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	$11, %rsi
	xorl	%edx, %edx
	callq	_bus_write_1
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	$10, %rsi
	movl	$40, %edx
	callq	_bus_write_1
	movl	(%rbx), %edi
	movq	(%r12), %rsi
	addq	$13, %rsi
	movl	$40, %edx
	callq	_bus_write_1
	movl	(%rbx), %edi
	movq	(%r14), %rsi
	addq	$13, %rsi
	movl	$40, %edx
	callq	_bus_write_1
	movl	(%rbx), %edi
	movq	(%r14), %rsi
	addq	$14, %rsi
	movl	$40, %edx
	callq	_bus_write_1
	movl	(%rbx), %edi
	movl	$114688, %esi                   ## imm = 0x1C000
	xorl	%edx, %edx
	callq	_bus_write_4
	movl	(%rbx), %edi
	movl	$107488, %esi                   ## imm = 0x1A3E0
	movl	$65, %edx
	callq	_bus_write_4
	movl	(%rbx), %edi
	movl	(%r15), %esi
	callq	_bus_read_4
	orl	$-2147483648, %eax              ## imm = 0x80000000
	jmp	LBB0_3
LBB0_2:
	andl	$-5, %eax
LBB0_3:
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movl	%eax, %edx
	callq	_bus_write_4
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KEYLARGO_FCR2,4,2              ## @KEYLARGO_FCR2
	.comm	_KEYLARGO_GPIO_BASE,8,3         ## @KEYLARGO_GPIO_BASE
	.comm	_KEYLARGO_EXTINT_GPIO_REG_BASE,8,3 ## @KEYLARGO_EXTINT_GPIO_REG_BASE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_macio_enable_wireless          ; -- Begin function macio_enable_wireless
	.p2align	2
_macio_enable_wireless:                 ; @macio_enable_wireless
	.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	x20, x1
	bl	_device_get_softc
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x21, _KEYLARGO_FCR2@GOTPAGE
Lloh1:
	ldr	x21, [x21, _KEYLARGO_FCR2@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_bus_read_4
	cbz	w20, LBB0_2
; %bb.1:
	orr	w2, w0, #0x4
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_bus_write_4
	ldr	w0, [x19]
Lloh2:
	adrp	x20, _KEYLARGO_GPIO_BASE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _KEYLARGO_GPIO_BASE@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x1, x8, #15
	mov	w2, #5
	bl	_bus_write_1
	mov	w0, #1000
	bl	_DELAY
	ldr	w0, [x19]
	ldr	x8, [x20]
	add	x1, x8, #15
	mov	w2, #4
	bl	_bus_write_1
	mov	w0, #1000
	bl	_DELAY
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_bus_read_4
	and	w2, w0, #0x7fffffff
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_bus_write_4
	ldr	w0, [x19]
Lloh4:
	adrp	x22, _KEYLARGO_EXTINT_GPIO_REG_BASE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _KEYLARGO_EXTINT_GPIO_REG_BASE@GOTPAGEOFF]
	ldr	x8, [x22]
	add	x1, x8, #11
	mov	w2, #0
	bl	_bus_write_1
	ldr	w0, [x19]
	ldr	x8, [x22]
	add	x1, x8, #10
	mov	w2, #40
	bl	_bus_write_1
	ldr	w0, [x19]
	ldr	x8, [x22]
	add	x1, x8, #13
	mov	w2, #40
	bl	_bus_write_1
	ldr	w0, [x19]
	ldr	x8, [x20]
	add	x1, x8, #13
	mov	w2, #40
	bl	_bus_write_1
	ldr	w0, [x19]
	ldr	x8, [x20]
	add	x1, x8, #14
	mov	w2, #40
	bl	_bus_write_1
	ldr	w0, [x19]
	mov	w1, #114688
	mov	w2, #0
	bl	_bus_write_4
	ldr	w0, [x19]
	mov	w1, #41952
	movk	w1, #1, lsl #16
	mov	w2, #65
	bl	_bus_write_4
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_bus_read_4
	orr	w2, w0, #0x80000000
	b	LBB0_3
LBB0_2:
	and	w2, w0, #0xfffffffb
LBB0_3:
	ldr	w0, [x19]
	ldr	w1, [x21]
	bl	_bus_write_4
	mov	w0, #0
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_KEYLARGO_FCR2,4,2              ; @KEYLARGO_FCR2
	.comm	_KEYLARGO_GPIO_BASE,8,3         ; @KEYLARGO_GPIO_BASE
	.comm	_KEYLARGO_EXTINT_GPIO_REG_BASE,8,3 ; @KEYLARGO_EXTINT_GPIO_REG_BASE
.subsections_via_symbols
