	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdx_ioctl_priv
_bdx_ioctl_priv:                        ## @bdx_ioctl_priv
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DBG
	movq	_SIOCDEVPRIVATE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_17
LBB0_2:
	movl	(%r14), %esi
	leaq	-52(%rbp), %rdi
	movl	$12, %edx
	callq	_copy_from_user
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_RET
LBB0_4:
	movl	-52(%rbp), %esi
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %ecx
	leaq	L_.str.2(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBG
	movq	_CAP_SYS_RAWIO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_10
## %bb.5:
	movl	-52(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_11
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_13
## %bb.7:
	movl	-48(%rbp), %esi
	movq	%r15, %rdi
	callq	_bdx_range_check
	testl	%eax, %eax
	js	LBB0_16
## %bb.8:
	movl	-48(%rbp), %esi
	movq	%r15, %rdi
	callq	_READ_REG
	movl	%eax, -44(%rbp)
	movl	-48(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%r12d, %r12d
	movl	%eax, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_DBG
	movl	(%r14), %edi
	leaq	-52(%rbp), %rsi
	movl	$12, %edx
	callq	_copy_to_user
	testl	%eax, %eax
	je	LBB0_17
## %bb.9:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movq	_EPERM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_17
LBB0_11:
	movl	-48(%rbp), %esi
	movq	%r15, %rdi
	callq	_bdx_range_check
	testl	%eax, %eax
	js	LBB0_16
## %bb.12:
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	%r15, %rdi
	callq	_WRITE_REG
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	leaq	L_.str.4(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_DBG
	jmp	LBB0_17
LBB0_13:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_RET
	jmp	LBB0_17
LBB0_16:
	movl	%eax, %r12d
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%r12d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTER,4,2                      ## @ENTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"jiffies=%ld cmd=%d\n"

	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_SIOCDEVPRIVATE,4,2             ## @SIOCDEVPRIVATE
L_.str.1:                               ## @.str.1
	.asciz	"can't copy from user\n"

	.comm	_EFAULT,4,2                     ## @EFAULT
L_.str.2:                               ## @.str.2
	.asciz	"%d 0x%x 0x%x\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_CAP_SYS_RAWIO,4,2              ## @CAP_SYS_RAWIO
	.comm	_EPERM,4,2                      ## @EPERM
L_.str.3:                               ## @.str.3
	.asciz	"read_reg(0x%x)=0x%x (dec %d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"write_reg(0x%x, 0x%x)\n"

	.no_dead_strip	_bdx_ioctl_priv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdx_ioctl_priv
_bdx_ioctl_priv:                        ; @bdx_ioctl_priv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_netdev_priv
	mov	x20, x0
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_DBG
Lloh8:
	adrp	x8, _SIOCDEVPRIVATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIOCDEVPRIVATE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_2
; %bb.1:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_11
LBB0_2:
	ldr	w1, [x19]
	add	x0, sp, #12
	mov	w2, #12
	bl	_copy_from_user
	cbz	w0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
Lloh15:
	adrp	x8, _EFAULT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_RET
LBB0_4:
	ldp	w1, w2, [sp, #12]
	ldr	w8, [sp, #20]
	str	x8, [sp]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBG
Lloh20:
	adrp	x8, _CAP_SYS_RAWIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CAP_SYS_RAWIO@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_10
; %bb.5:
	ldr	w8, [sp, #12]
	cmp	w8, #128
	b.eq	LBB0_12
; %bb.6:
	cmp	w8, #129
	b.ne	LBB0_14
; %bb.7:
	ldr	w1, [sp, #16]
	mov	x0, x20
	bl	_bdx_range_check
	tbnz	w0, #31, LBB0_17
; %bb.8:
	ldr	w1, [sp, #16]
	mov	x0, x20
	bl	_READ_REG
	mov	x2, x0
	str	w0, [sp, #20]
	ldr	w1, [sp, #16]
	str	x2, [sp]
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_DBG
	ldr	w0, [x19]
	add	x1, sp, #12
	mov	w2, #12
	bl	_copy_to_user
	cbz	w0, LBB0_17
; %bb.9:
Lloh25:
	adrp	x8, _EFAULT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_15
LBB0_10:
Lloh27:
	adrp	x8, _EPERM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_12:
	ldr	w1, [sp, #16]
	mov	x0, x20
	bl	_bdx_range_check
	tbnz	w0, #31, LBB0_17
; %bb.13:
	ldp	w1, w2, [sp, #16]
	mov	x0, x20
	bl	_WRITE_REG
	ldp	w1, w2, [sp, #16]
Lloh29:
	adrp	x0, l_.str.4@PAGE
Lloh30:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DBG
	b	LBB0_16
LBB0_14:
Lloh31:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_RET
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldr	x8, [sp, #24]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTER,4,2                      ; @ENTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"jiffies=%ld cmd=%d\n"

	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_SIOCDEVPRIVATE,4,2             ; @SIOCDEVPRIVATE
l_.str.1:                               ; @.str.1
	.asciz	"can't copy from user\n"

	.comm	_EFAULT,4,2                     ; @EFAULT
l_.str.2:                               ; @.str.2
	.asciz	"%d 0x%x 0x%x\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_CAP_SYS_RAWIO,4,2              ; @CAP_SYS_RAWIO
	.comm	_EPERM,4,2                      ; @EPERM
l_.str.3:                               ; @.str.3
	.asciz	"read_reg(0x%x)=0x%x (dec %d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"write_reg(0x%x, 0x%x)\n"

	.no_dead_strip	_bdx_ioctl_priv
.subsections_via_symbols
