	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port_hdr_ioctl
_port_hdr_ioctl:                        ## @port_hdr_ioctl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$128, %edx
	jne	LBB0_3
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subq	(%rcx), %rax
	popq	%rbp
	retq
LBB0_5:
	popq	%rbp
	jmp	_port_reset                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%x cmd not handled"

	.comm	_ENODEV,8,3                     ## @ENODEV
	.no_dead_strip	_port_hdr_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port_hdr_ioctl
_port_hdr_ioctl:                        ; @port_hdr_ioctl
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	cmp	w2, #128
	b.ne	LBB0_3
; %bb.1:
	cbz	x3, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	x8, [x8]
	neg	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_port_reset
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x cmd not handled"

	.comm	_ENODEV,8,3                     ; @ENODEV
	.no_dead_strip	_port_hdr_ioctl
.subsections_via_symbols
