	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostap_get_porttype            ## -- Begin function hostap_get_porttype
	.p2align	4, 0x90
_hostap_get_porttype:                   ## @hostap_get_porttype
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	_IW_MODE_ADHOC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 8(%rdi)
	jne	LBB0_9
## %bb.2:
	movq	_HFA384X_PORTTYPE_IBSS@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movq	_IW_MODE_INFRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_HFA384X_PORTTYPE_BSS@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_IW_MODE_REPEAT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_HFA384X_PORTTYPE_WDS@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_IW_MODE_MONITOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
LBB0_9:
	movq	_HFA384X_PORTTYPE_PSEUDO_IBSS@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_8:
	movq	_HFA384X_PORTTYPE_HOSTAP@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_MODE_ADHOC,8,3              ## @IW_MODE_ADHOC
	.comm	_HFA384X_PORTTYPE_PSEUDO_IBSS,4,2 ## @HFA384X_PORTTYPE_PSEUDO_IBSS
	.comm	_HFA384X_PORTTYPE_IBSS,4,2      ## @HFA384X_PORTTYPE_IBSS
	.comm	_IW_MODE_INFRA,8,3              ## @IW_MODE_INFRA
	.comm	_HFA384X_PORTTYPE_BSS,4,2       ## @HFA384X_PORTTYPE_BSS
	.comm	_IW_MODE_REPEAT,8,3             ## @IW_MODE_REPEAT
	.comm	_HFA384X_PORTTYPE_WDS,4,2       ## @HFA384X_PORTTYPE_WDS
	.comm	_IW_MODE_MONITOR,8,3            ## @IW_MODE_MONITOR
	.comm	_HFA384X_PORTTYPE_HOSTAP,4,2    ## @HFA384X_PORTTYPE_HOSTAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hostap_get_porttype            ; -- Begin function hostap_get_porttype
	.p2align	2
_hostap_get_porttype:                   ; @hostap_get_porttype
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IW_MODE_ADHOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IW_MODE_ADHOC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _HFA384X_PORTTYPE_PSEUDO_IBSS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HFA384X_PORTTYPE_PSEUDO_IBSS@GOTPAGEOFF]
Lloh5:
	adrp	x10, _HFA384X_PORTTYPE_IBSS@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HFA384X_PORTTYPE_IBSS@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w0, [x8]
	ret
LBB0_2:
Lloh7:
	adrp	x9, _IW_MODE_INFRA@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IW_MODE_INFRA@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _HFA384X_PORTTYPE_BSS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HFA384X_PORTTYPE_BSS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ret
LBB0_4:
Lloh13:
	adrp	x9, _IW_MODE_REPEAT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IW_MODE_REPEAT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh16:
	adrp	x8, _HFA384X_PORTTYPE_WDS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HFA384X_PORTTYPE_WDS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ret
LBB0_6:
Lloh19:
	adrp	x9, _IW_MODE_MONITOR@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IW_MODE_MONITOR@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
Lloh22:
	adrp	x10, _HFA384X_PORTTYPE_HOSTAP@GOTPAGE
Lloh23:
	ldr	x10, [x10, _HFA384X_PORTTYPE_HOSTAP@GOTPAGEOFF]
Lloh24:
	adrp	x11, _HFA384X_PORTTYPE_PSEUDO_IBSS@GOTPAGE
Lloh25:
	ldr	x11, [x11, _HFA384X_PORTTYPE_PSEUDO_IBSS@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_MODE_ADHOC,8,3              ; @IW_MODE_ADHOC
	.comm	_HFA384X_PORTTYPE_PSEUDO_IBSS,4,2 ; @HFA384X_PORTTYPE_PSEUDO_IBSS
	.comm	_HFA384X_PORTTYPE_IBSS,4,2      ; @HFA384X_PORTTYPE_IBSS
	.comm	_IW_MODE_INFRA,8,3              ; @IW_MODE_INFRA
	.comm	_HFA384X_PORTTYPE_BSS,4,2       ; @HFA384X_PORTTYPE_BSS
	.comm	_IW_MODE_REPEAT,8,3             ; @IW_MODE_REPEAT
	.comm	_HFA384X_PORTTYPE_WDS,4,2       ; @HFA384X_PORTTYPE_WDS
	.comm	_IW_MODE_MONITOR,8,3            ; @IW_MODE_MONITOR
	.comm	_HFA384X_PORTTYPE_HOSTAP,4,2    ; @HFA384X_PORTTYPE_HOSTAP
.subsections_via_symbols
