	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_set_channel
_ipw_set_channel:                       ## @ipw_set_channel
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	_CFG_STATIC_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%r14)
	cmpq	%rsi, (%r14)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_INFO
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_INFO
	movq	_CFG_STATIC_CHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 24(%r14)
	leaq	L_.str.1(%rip), %rdi
	callq	_IPW_DEBUG_ASSOC
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_IPW_DEBUG_INFO
	movq	%rbx, (%r14)
	leaq	L_.str.4(%rip), %rdi
	callq	_IPW_DEBUG_ASSOC
	movq	%r14, %rdi
	callq	_ipw_disassociate
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_ipw_associate
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting channel to ANY (0)\n"

	.comm	_CFG_STATIC_CHANNEL,4,2         ## @CFG_STATIC_CHANNEL
L_.str.1:                               ## @.str.1
	.asciz	"Attempting to associate with new parameters.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Request to set channel to current value (%d)\n"

L_.str.3:                               ## @.str.3
	.asciz	"Setting channel to %i\n"

L_.str.4:                               ## @.str.4
	.asciz	"[re]association triggered due to channel change.\n"

	.comm	_IW_MODE_MONITOR,8,3            ## @IW_MODE_MONITOR
	.comm	_STATUS_SCANNING,4,2            ## @STATUS_SCANNING
	.no_dead_strip	_ipw_set_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_set_channel
_ipw_set_channel:                       ; @ipw_set_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	cbz	x1, LBB0_3
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x8, _CFG_STATIC_CHANNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CFG_STATIC_CHANNEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
	ldr	x8, [x19]
	cmp	x8, x1
	b.ne	LBB0_4
; %bb.2:
	str	x20, [sp]
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_IPW_DEBUG_INFO
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_IPW_DEBUG_INFO
Lloh7:
	adrp	x8, _CFG_STATIC_CHANNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CFG_STATIC_CHANNEL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	bic	w8, w9, w8
	str	w8, [x19, #24]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_IPW_DEBUG_ASSOC
	b	LBB0_5
LBB0_4:
	str	x20, [sp]
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_IPW_DEBUG_INFO
	str	x20, [x19]
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_IPW_DEBUG_ASSOC
	mov	x0, x19
	bl	_ipw_disassociate
	cbnz	w0, LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_ipw_associate
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting channel to ANY (0)\n"

	.comm	_CFG_STATIC_CHANNEL,4,2         ; @CFG_STATIC_CHANNEL
l_.str.1:                               ; @.str.1
	.asciz	"Attempting to associate with new parameters.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Request to set channel to current value (%d)\n"

l_.str.3:                               ; @.str.3
	.asciz	"Setting channel to %i\n"

l_.str.4:                               ; @.str.4
	.asciz	"[re]association triggered due to channel change.\n"

	.comm	_IW_MODE_MONITOR,8,3            ; @IW_MODE_MONITOR
	.comm	_STATUS_SCANNING,4,2            ; @STATUS_SCANNING
	.no_dead_strip	_ipw_set_channel
.subsections_via_symbols
