	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wimax_rfkill_add               ## -- Begin function wimax_rfkill_add
	.p2align	4, 0x90
_wimax_rfkill_add:                      ## @wimax_rfkill_add
	.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, %r15
	callq	_wimax_dev_to_dev
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdx
	movl	$3, %edi
	movq	%rax, %rsi
	movq	%r15, %rcx
	callq	_d_fnstart
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movl	24(%r15), %edi
	movq	_RFKILL_TYPE_WIMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_wimax_rfkill_ops@GOTPCREL(%rip), %rcx
	movq	%r14, %rsi
	movq	%r15, %r8
	callq	_rfkill_alloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	movq	%r14, %rsi
	movq	%rax, %rcx
	callq	_d_printf
	movq	%rbx, (%r15)
	movq	%rbx, %rdi
	callq	_rfkill_register
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	cmpq	$0, 16(%r15)
	jne	LBB0_4
## %bb.3:
	movq	_WIMAX_RF_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
LBB0_4:
	leaq	L_.str.2(%rip), %rdx
	xorl	%r12d, %r12d
	movl	$3, %edi
	movq	%r14, %rsi
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_d_fnend
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %r12d
	movq	(%r15), %rdi
	callq	_rfkill_destroy
LBB0_6:
	leaq	L_.str.3(%rip), %rdx
	movl	$3, %edi
	movq	%r14, %rsi
	movq	%r15, %rcx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_d_fnend
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(wimax_dev %p)\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RFKILL_TYPE_WIMAX,4,2          ## @RFKILL_TYPE_WIMAX
	.comm	_wimax_rfkill_ops,4,2           ## @wimax_rfkill_ops
L_.str.1:                               ## @.str.1
	.asciz	"rfkill %p\n"

	.comm	_WIMAX_RF_ON,4,2                ## @WIMAX_RF_ON
L_.str.2:                               ## @.str.2
	.asciz	"(wimax_dev %p) = 0\n"

L_.str.3:                               ## @.str.3
	.asciz	"(wimax_dev %p) = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wimax_rfkill_add               ; -- Begin function wimax_rfkill_add
	.p2align	2
_wimax_rfkill_add:                      ; @wimax_rfkill_add
	.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	x19, x0
	bl	_wimax_dev_to_dev
	mov	x20, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #3
	mov	x1, x20
	mov	x3, x19
	bl	_d_fnstart
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	ldr	w0, [x19, #24]
Lloh5:
	adrp	x8, _RFKILL_TYPE_WIMAX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RFKILL_TYPE_WIMAX@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x3, _wimax_rfkill_ops@GOTPAGE
Lloh9:
	ldr	x3, [x3, _wimax_rfkill_ops@GOTPAGEOFF]
	mov	x1, x20
	mov	x4, x19
	bl	_rfkill_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x1, x20
	mov	x3, x21
	bl	_d_printf
	str	x21, [x19]
	mov	x0, x21
	bl	_rfkill_register
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _WIMAX_RF_ON@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WIMAX_RF_ON@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_4:
Lloh15:
	adrp	x2, l_.str.2@PAGE
Lloh16:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #3
	mov	x1, x20
	mov	x3, x19
	bl	_d_fnend
	mov	w21, #0
	b	LBB0_8
LBB0_5:
	neg	w21, w22
	b	LBB0_7
LBB0_6:
	mov	x21, x0
	ldr	x0, [x19]
	bl	_rfkill_destroy
LBB0_7:
	str	x21, [sp]
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w0, #3
	mov	x1, x20
	mov	x3, x19
	bl	_d_fnend
LBB0_8:
	mov	x0, x21
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(wimax_dev %p)\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RFKILL_TYPE_WIMAX,4,2          ; @RFKILL_TYPE_WIMAX
	.comm	_wimax_rfkill_ops,4,2           ; @wimax_rfkill_ops
l_.str.1:                               ; @.str.1
	.asciz	"rfkill %p\n"

	.comm	_WIMAX_RF_ON,4,2                ; @WIMAX_RF_ON
l_.str.2:                               ; @.str.2
	.asciz	"(wimax_dev %p) = 0\n"

l_.str.3:                               ; @.str.3
	.asciz	"(wimax_dev %p) = %d\n"

.subsections_via_symbols
