	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iw_query_port
_iw_query_port:                         ## @iw_query_port
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %r15
	xorl	%ebx, %ebx
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ib_device_get_netdev
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r13
	movq	_IB_MTU_4096@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movl	(%r13), %edi
	callq	_ib_mtu_int_to_enum
	movl	%eax, 8(%r12)
	movq	%r13, %rdi
	callq	_netif_carrier_ok
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movq	%r13, %rdi
	callq	___in_dev_get_rcu
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_IB_PORT_PHYS_STATE_LINK_UP@GOTPCREL(%rip), %rax
	movq	_IB_PORT_ACTIVE@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_IB_PORT_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movq	_IB_PORT_PHYS_STATE_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	jmp	LBB0_8
LBB0_6:
	movq	_IB_PORT_PHYS_STATE_PORT_CONFIGURATION_TRAINING@GOTPCREL(%rip), %rax
	movq	_IB_PORT_INIT@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r12)
	movl	(%rax), %eax
	movl	%eax, (%r12)
	xorl	%eax, %eax
	callq	_rcu_read_unlock
LBB0_8:
	movq	%r13, %rdi
	callq	_dev_put
	movq	(%r15), %rax
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IB_MTU_4096,4,2                ## @IB_MTU_4096
	.comm	_IB_PORT_DOWN,4,2               ## @IB_PORT_DOWN
	.comm	_IB_PORT_PHYS_STATE_DISABLED,4,2 ## @IB_PORT_PHYS_STATE_DISABLED
	.comm	_IB_PORT_ACTIVE,4,2             ## @IB_PORT_ACTIVE
	.comm	_IB_PORT_PHYS_STATE_LINK_UP,4,2 ## @IB_PORT_PHYS_STATE_LINK_UP
	.comm	_IB_PORT_INIT,4,2               ## @IB_PORT_INIT
	.comm	_IB_PORT_PHYS_STATE_PORT_CONFIGURATION_TRAINING,4,2 ## @IB_PORT_PHYS_STATE_PORT_CONFIGURATION_TRAINING
	.no_dead_strip	_iw_query_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iw_query_port
_iw_query_port:                         ; @iw_query_port
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	x0, x21
	mov	x1, x20
	bl	_ib_device_get_netdev
	cbz	x0, LBB0_5
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _IB_MTU_4096@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MTU_4096@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	ldr	w0, [x0]
	bl	_ib_mtu_int_to_enum
	str	w0, [x19, #8]
	mov	x0, x22
	bl	_netif_carrier_ok
	cbz	w0, LBB0_6
; %bb.2:
	bl	_rcu_read_lock
	mov	x0, x22
	bl	___in_dev_get_rcu
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _IB_PORT_PHYS_STATE_LINK_UP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_PORT_PHYS_STATE_LINK_UP@GOTPAGEOFF]
Lloh5:
	adrp	x9, _IB_PORT_ACTIVE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IB_PORT_ACTIVE@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_6:
Lloh10:
	adrp	x8, _IB_PORT_DOWN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IB_PORT_DOWN@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _IB_PORT_PHYS_STATE_DISABLED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IB_PORT_PHYS_STATE_DISABLED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	b	LBB0_9
LBB0_7:
Lloh16:
	adrp	x8, _IB_PORT_PHYS_STATE_PORT_CONFIGURATION_TRAINING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IB_PORT_PHYS_STATE_PORT_CONFIGURATION_TRAINING@GOTPAGEOFF]
Lloh18:
	adrp	x9, _IB_PORT_INIT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _IB_PORT_INIT@GOTPAGEOFF]
LBB0_8:
	ldr	w9, [x9]
	ldr	w8, [x8]
	stp	w8, w9, [x19]
	bl	_rcu_read_unlock
LBB0_9:
	mov	x0, x22
	bl	_dev_put
	ldr	x3, [x21]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	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
	br	x3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IB_MTU_4096,4,2                ; @IB_MTU_4096
	.comm	_IB_PORT_DOWN,4,2               ; @IB_PORT_DOWN
	.comm	_IB_PORT_PHYS_STATE_DISABLED,4,2 ; @IB_PORT_PHYS_STATE_DISABLED
	.comm	_IB_PORT_ACTIVE,4,2             ; @IB_PORT_ACTIVE
	.comm	_IB_PORT_PHYS_STATE_LINK_UP,4,2 ; @IB_PORT_PHYS_STATE_LINK_UP
	.comm	_IB_PORT_INIT,4,2               ; @IB_PORT_INIT
	.comm	_IB_PORT_PHYS_STATE_PORT_CONFIGURATION_TRAINING,4,2 ; @IB_PORT_PHYS_STATE_PORT_CONFIGURATION_TRAINING
	.no_dead_strip	_iw_query_port
.subsections_via_symbols
