	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt753x_nl_get_swdevs
_mt753x_nl_get_swdevs:                  ## @mt753x_nl_get_swdevs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$544, %rsp                      ## imm = 0x220
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	$0, -552(%rbp)
	leaq	-544(%rbp), %rdi
	movl	$512, %esi                      ## imm = 0x200
	callq	_mt753x_nl_list_devs
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_MT753X_CMD_REPLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-552(%rbp), %rdx
	movq	%r14, %rdi
	callq	_mt753x_nl_prepare_reply
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movq	-552(%rbp), %rdi
	movq	_MT753X_ATTR_TYPE_MESG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-544(%rbp), %rdx
	callq	_nla_put_string
	testl	%eax, %eax
	js	LBB0_4
## %bb.8:
	movq	-552(%rbp), %rdi
	movq	%r14, %rsi
	callq	_mt753x_nl_send_reply
	movl	%eax, %ebx
	jmp	LBB0_6
LBB0_4:
	movl	%eax, %ebx
	movq	-552(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_nlmsg_free
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_9
## %bb.7:
	movl	%ebx, %eax
	addq	$544, %rsp                      ## imm = 0x220
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No switch registered\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MT753X_CMD_REPLY,4,2           ## @MT753X_CMD_REPLY
	.comm	_MT753X_ATTR_TYPE_MESG,4,2      ## @MT753X_ATTR_TYPE_MESG
	.no_dead_strip	_mt753x_nl_get_swdevs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt753x_nl_get_swdevs
_mt753x_nl_get_swdevs:                  ; @mt753x_nl_get_swdevs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	sub	sp, sp, #528
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	str	xzr, [sp]
	add	x0, sp, #8
	mov	w1, #512
	bl	_mt753x_nl_list_devs
	cbz	w0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _MT753X_CMD_REPLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MT753X_CMD_REPLY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_mt753x_nl_prepare_reply
	tbnz	w0, #31, LBB0_4
; %bb.2:
	ldr	x0, [sp]
Lloh6:
	adrp	x8, _MT753X_ATTR_TYPE_MESG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT753X_ATTR_TYPE_MESG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_nla_put_string
	tbnz	w0, #31, LBB0_4
; %bb.3:
	ldr	x0, [sp]
	mov	x1, x19
	bl	_mt753x_nl_send_reply
	mov	x20, x0
	b	LBB0_7
LBB0_4:
	mov	x20, x0
	ldr	x0, [sp]
	cbz	x0, LBB0_7
; %bb.5:
	bl	_nlmsg_free
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	add	sp, sp, #528
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No switch registered\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MT753X_CMD_REPLY,4,2           ; @MT753X_CMD_REPLY
	.comm	_MT753X_ATTR_TYPE_MESG,4,2      ; @MT753X_ATTR_TYPE_MESG
	.no_dead_strip	_mt753x_nl_get_swdevs
.subsections_via_symbols
